package Object.leibunei;

/**
 * @author haomin
 * @date 2022/11/08 21:55
 **/
public class Outer {
    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.fun();
    }


    private int a = 1;
    private static int b = 2;

    void fun(){
        Inner1 inner1 = new Inner1();
        inner1.print();
    }



    public class Inner1{
        public void print(){
            System.out.println(Outer.this.a);
            System.out.println(b);
        }
    }

    public static class Inner2{
        public void print(){
            // System.out.println(a); 不能访问
            System.out.println(b);
        }
    }
}